Fix client.py to return the site name.

If the site name is not defined the domain name is returned.