Export GEM_HOME, GEM_PATH and PATH to ensure other commands inherit them.