Use #write instead of #puts when writing fixed manifest

So we write the manifest back in it's original form, without adding a trailing newline if one didn't already exist.