add trailing newline to file