fix bug on AWS getting the IP to use for binding to Mesos.