[libvirt PATCH 1/9] rpc: merge logic for generating remote SSH shell script