Fix ordering issue of ZeroMQ path discovery