Modify the gem install method to also support rbenv.