Major rewrite to fix some issues & potential problems

* Ruby version 2.0 or better is required now
* Use the 'shellwords' library to prevent files containing shell characters
  breaking the syntax check
* Allow setting the ruby compiler executable via the
  `hooks.ruby-compiler` git config variable
* Makes the code less clever and more straight-forward