Let rvm be the first folder in /Users/andrii/.rvm/gems/ruby-2.0.0-p247/bin:/Users/andrii/.rvm/gems/ruby-2.0.0-p247/bin:/Users/andrii/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/andrii/.rvm/bin:/Users/andrii/.nvm/v0.10.13/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/andrii/.bash/scripts