fix uninstall bug that deleted all files in current dir