Restore stdout on windows

Below doesn't work on windows

```
C:\> ls | peco > file
```