honor existing GEM_HOME/GEM_PATH + fix gemset root for system Ruby

Hi, please consider applying these two patches to your repository. I am working in integrating rbenv with the Debian Ruby package, and these changes will make it easier (without affecting anybody else AFAICT).