Improvements to the file template to better support instances where globs of files are provided in nested directories.