Added support for nokogiri instead of hpricot