Use rbconfig to find the ruby interpreter.
Merge branch 'rbconfig-ruby'