Detect bucket name.