use env to run ruby for ruby version management compatability

Solves issue where using `/usr/bin/ruby` uses system ruby of 1.8.7 and when bundler is loaded, `Gemfile` cannot be parsed if it uses ruby 1.9+ hash syntax.
updated using bundler gem template
Merge remote-tracking branch 'origin/patch-1'