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

Also, cleaned away little used `def command?` method (using `Configuration.command_which` instead)