patch JUnitXmlReporter.writeFile so it works in nodejs