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 not sure if this helps http://www.regexr.com/39ckh