install nokogiri gem before running ruby detect script