Remove unnecessary newlines in the end of files.