refactored rvm install into a function