fix inconsistent use of EOF newline, closes #160