removing blank lines at the end of source files (keeping only one newline)