Detect when the last newline is not there