colored output of hosts script improved