Fix rubygems 1.8.x issue with nokogiri