Apply template syntax check to files in the templates dir only. This avoids false positives for .erb files in the files subdirectory which are not actually Chef templates.

Obvious fix.