Moving rvm and ruby installation into osx and linux scripts