Fix nokogiri dependency for 1.8 and lower.