Fix trailing newline in zip files

#1755