fixes #8607 - compatibility with RubyGems 1.3.7 on EL6