s3:cli_pipe: make use of cli_state_remote_name()