Fixed number of arguments check.
Added workaround for false directory permissions
Fixed uncompressing of directory entries in ZIP.