fix issue #2: zipping content only if folder ends with file separator