Remove new lines at end of file.