Fix Twig extension to work with bundle names