leave only one empty line at the end of file