handle fact that RUBY_VERSION not being set in rvm's env

Fix for textmate hook so it works when RUBY_VERSION is not set in rvm env.