Use file-name-as-directory to add a trailing slash
Merge pull request #52 from abicky/support-dir-without-traiing-slash

Use file-name-as-directory to add a trailing slash