directory should have a trailing slash
Merge branch 'issues/jar-files-with-directory-entries'