Fix --logfile without a filename on Windows.