only redirect stdout to logfile on Windows