apply rvm_with_gems only to global.gems, closes #1699