Tweaking the install and uninstall scripts...

This should prevent it from getting stuck in a state where it's neither installed nor uninstalled, according to the scripts