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