Fix race condition on Windows by consolidating two file writes

See https://github.com/scoverage/scalac-scoverage-plugin/issues/19