correct gem_path and gem_home