reworked loading rvmrc, fix #2078, fix #2092