Added fix to get around rubygems/rubygems#982