Fix handing of mixed case filenames on windows