remove extra blank line at the end of file