unify bucket name determination to avoid unknown differences between
PHP's http_host server var and the document.location.hostname value in
JS