Just use Ruby

There should be no need to start two new ruby processes to find out if the `pre-commit` gem is available or not.

Also, the script is already ruby. Just run pre-commit in the same process.