s3:rpcclient: make use of cli_state_remote_name()