Add newline at the end of a file