Exit with error when run outside Git repository

Also fix for some typos.
Merge branch 'master' of github.com:sorennielsen/git-hooks