Get template mapping after removing relative path