Fix problem with lack of newlines at the ends of files