added rvm gem to run specs in correct environment; fixed a couple of tasks