add missing new lines at the end of each file