Fix zip creation.

rebase of jburel's https://github.com/openmicroscopy/openmicroscopy/commit/d2b7c42, see https://github.com/openmicroscopy/openmicroscopy/pull/1056#issuecomment-16914136