Fix trailing newline in zip files

#PR1755