Support gem execution with rbenv ruby.