Handle files with missing newline