Save current shell when installing

* Don't change login shell to zsh if already zsh
* Restore previous shell instead of bash when uninstalling
* Fix bashism in tools/uninstall.sh