fix detecting rvmrc full path, fix #2344