updated git commit hook script to work