[libvirt] [PATCH v3 2/4] util: share code between virExec and virCommandExec