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.
Looks good, as long as the tests are OK and coverage on this is 100%, go for it.