Some fixes towards ISSUE #42

`GEM_HOME` is not a safe environment variable to use for this unfortunately. `GEM_HOME` is used by tools like [rvm](http://rvm.io) which automatically define it in a shell's session