Respect ruby when using gem with rbenv

It fixes #7681. Without it you cannot install new gem when using rbenv without default.