Fixes issue when a single file is provided to the Sorter
Adds path sanitization for any OS
Adds explicit check to ignore DICOMDIR files

DICOMDIR files are no longer valid after sorting occurs and they only get in the way.
Fixes bug when only one or two files are sorted
Fixes bug on OS X when replacement values are unicode
Applies pep8 guidelines to entire codebase