Made nightly install/uninstall more secure