feature #2371: raise exception and cli error when nokogiri is not installed