add multi-level ZK path search

Given a list of zookeeper paths, search them in order: if there are no
hosts found at the first level, fall through to the next and so on.