Add dirname to Converter

Fixes #2.
This is [a pull request](https://github.com/matthodan/jekyll-asset-pipeline/pull/22) by @clee704 migrated from the old project.