fix hostlist parsing

@jsquyres - could you please review. thanks
You don't like the comma in the output? :-)