Added ruby PATH to the post-commit hook

Added PATH to the hook to make it work with rvm and the rest. Refactored from #116 Thanks @meza