Add trailing newline when writing config files.