Fixed Windows output file detection