On Python 2.5 use Jinja2 version that works with Python 2.5

Python 2.5 support was dropped in 2.7 release:
<http://jinja.pocoo.org/docs/changelog/#version-2-7>