tail: fix last 0 line handling