Canonicalise the old path when creating mappings