hostlist cleanup needs two passes (bb#936)