fix hostlist parsing

@jsquyres - could you please review. thanks