Add dirname to Converter
This is a pull request by @clee704 migrated from the old project.
Merge pull request #4 from kitsched/old-pr-22

Add dirname to Converter.