Fix error when GEM_HOME is empty