Ensure trailing slash on output directory. Fixes #12