Write trailing newline to output file