Normalizes multiple directory separators in normalizePath

This accounts for the scenario where a path may contain two or more consecutive directory separators in a path.
They start with C:\, but there are also network paths which are different, with multiple back slashing iirc. You'd have to look it up to be sure though.