Make ruby version work for rvm and plain ruby as well