Remove extra blank lines at the end of the file