added logic for rvm root install