Fix bash script not reading last line if there is no line ending