fixed some typos and added support for rvm/rbenv