fix grepping of supervisorctl restart output to produce a sensible exit code

also added `uniq` to check all processes in the process group (when
num_procs > 1)