Corrected off-by-one error in zip_dir.