#201: util: better error messages for the failure of resolving hostnames
fixes #224: fixed the broken command: cortex watch; related to #216