Add newline at end of file, if text doesn't end with it