Check the last line even if it does not end with a NL; issue #286