add trailing newlines to files