specify @global as GEM_HOME when installing rubygems, fix #2724