add GEM_HOME_SHARED support