Fixed STDIN support in CygWin