In case a package gets upgrade and a filename has changed case this allows
the upgrade to go through without any conflicts.
Similarly in case two different packages contain the same file with
a different case this makes it correctly detect a conflict.
This only handles ASCII parts of paths, so Unicode filenames still can
lead to invalid conflict detection.
Fixes#1426