Corrected path handling when finding templates.