Remove empty lines at EOFs