fix creating rubygems default gem home link to global, fix #2823