Update install_hooks.sh
Fixed the critical bug in install_hooks.sh. It works for me now but please make sure it also works for you. For the meanwhile, can we revert the changes in the master branch? We can have an unstable branch for merge requests in the future.