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