normalize paths before replace <TC>