ensure existence of newline at end of file