Fixes issue #8951 - gem install fails when rvm is set up with another us...

Hi there, this is my first attempt to issue a fix. Hope it's OK