[libvirt] [PATCH] portability fixes to tools/virt-pki-validate.in