bin/pn: do not print newline if only 1 line (using rm-last-nl)
bin/rm-last-nl: make it short

Signed-off-by: Bao Haojun <baohaojun@gmail.com>