[BUG #7602] pushed normcase'ing of paths to compare routine

- make the actual string compares case-insensitive for path compares
- but always return the fragments of the original strings as result, to
  retain original casing
- we still need the 'normcase' flag, to suppress normcasing e.g. for URLs
  (even on Win)