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.
@FrenkyNet i haven't used Windows in quite a while, what would that look like?