Make SmartyBundle run on both Symfony 2.1 and 2.2 (does a runtime check of the Symfony version)