Recursive directory search for template files