fix order of operations when getting rvm_ruby_string

fixes https://github.com/wayneeseguin/rvm/issues/2529