Fix for issue-22: Hostnames with '.' cause CmdAgent to fail