Load rvm as a function