only exporting GEM_HOME when needed