addPath now compatible with the latest version of twig