Update cluster.py

If self.ip_public is not available, then ssh using self.ip_private

Also set self.ip_public = self.ip_private in this case