Issue #2987939 by Dave Reid, rbayliss: Fixed edge case scenario where xmlsitemap_clear_directory() may accidentally delete the wrong directory on uninstall. This only happens if the xmlsitemap_path variable is different from the default value.