Fix global_ruby test where more than one Ruby version is installed.
Add integration test to cover envvar support.

References #29