added rvm wrapper detection and use.