Remove some bad lines at the end of some files