add basename and dirname to the core jinja2 filters