pre-commit hook tweaks

I was enabling the pre-commit hook at $work today (thanks very much for this, BTW) and I ran into an issue with the symlink not working for me.  So, I've included my changes here for your to accept/reject as you see fit. :)