Fix line ending before EOF