DICOM: fix file grouping so that path names are normalized (rebased onto develop)



This is the same as gh-1024 but rebased onto develop.

----

On Windows in particular, the list of pattern files often has extra path separator escaping, which prevents the
pattern files from being matched with the files from the directory listing.

To test, verify that selecting a single file from a multi-file DICOM dataset (e.g. dicom/johnh/PATIENT4728) on Windows without this fix results in an image with a single Z and T.  With this fix, selecting the same file should result in a Z stack.  Mac OS X and Linux should be unaffected, so please do make sure to test on Windows specifically.