correct uninstall check for directory