avoid twig directory not found exception