Start of normalizePath