switch to maven a bit earlier for jruby-1.7.6+, fix #2390
Merge branch 'master' of github.com:wayneeseguin/rvm
extract rvm version check to functions/cli, update #2388