Fixing build script and adding gerrit hooks
Mark hooks as executable