Fix BEACON_SERVICE_HOSTNAME usage.