fix newlines at end of file