bash: pipe_if_not_empty
bash: various tidying of bins