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