Fix piping stdout/err on Windows