Fixed the rvm, ruby, and gem install, plus most of the additional dependencies