Detect and use rvm when available /issue #243