fix output on cygwin