Stuff to make it all work.
Still problems with using rvm i.e. executing bundle cmd