add basename and dirname to the core jinja2 filters
Merge pull request #2978 from bryanlarsen/basename

add basename and dirname to the core jinja2 filters