[libvirt PATCH v2 10/20] commandhelper: Factor out printFds