tail: rewrite tail_bytes and tail_lines as one macro