WINDOWS: fix redirect_stdio to TTY