[FIXED JENKINS-16319] Stream ordering problem prevented SecretRewriter from working on Windows.