use the set endpoint in bucket name check

fixes the last hardcoded url. the others instances of this url are
only in the XML schema/namespace values so do not require changing