Add additional debug logic for reading templating files

Ref #5776