[zip] adding empty dirs
refactorization of archive stuff