added rvm to path and added a fix for iTerm2 previous dir use with rvm