only set the console mode if stdin is a console (not a pipe) This allows piping commands and running from a cygwin console.