envoy: fix array copying logic in exec_ssh