Fix hostlist parsing