Update cluster_info.py

Deal with the case when hostname contaion "-".