Add a newline at the end of output files before comparing