check for newline at end of manifest before appending with add_to_manifest()