Added check to ensure permissions are not explicitly set if they do not exist in the zip

Added a simple check to make sure the permissions are not 0 before setting them.

When the zip comes from non-POSIX systems, the permissions will not exist. This means the zip is unpacked with all files/folders having no permissions at all.