reworked checking if bundler is in context of rvm, update #2031