Changed the way how the running extension is determined
Use only one Twig_Environment for each Template instance