Cross-platform way of finding an executable in the $PATH.
which('ruby') #=> /usr/bin/ruby
From:
https://github.com/defunkt/hub/commit/353031307e704d860826fc756ff0070be5e1b430#L2R173
[Validate]