Remove extra newlines from end of files.