[Bug 47766] PathAllocCanonicalize treats path segments start with dots wrong.