remove empty line on end of file