move __rvm_path_match_gem_home_check earlier in rvm invocation to prevent issues when loading .rvmrc in cd, fix #2050