Add newline to the last line of file.