Use cloud.public_hostname if present

The Gist is already set to use cloud.public_ipv4 if the cloud key is present in the node data. This patch just adds the same functionality for the hostname to use cloud.public_hostname as well.