Modified install, uninstall, and run scripts to be more robust.