test for directory in uninstall