fix nokogiri call to platform