Fix handling of directory-only ZIP entries