conditionally install nokogiri