Remove extra newlines at end of files