Simplify git hook script and remove nvm stuff from setup.sh