[libvirt PATCH v3 01/10] rpc: merge logic for generating remote SSH shell script