Remove last remnants of fnmatch() and use Finder instead for finding twig templates

Fixes #2176