This isn't a general fix to all paths where we assume case-sensitivity, it's
a minimally-invasive fix targeting the llvm 9 branch.
I don't have a good automated test for this :-\ I have manually verified that it fixes the issue on my windows machine.
The plan would be to cherrypick this to llvm 9, then later back this out and replace it with a real (testable) fix.