Fix Rubygems integration with 1.8.0-1.8.19