virt-libguestfs: Fix bugs in virt_sysprep test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #1038 from liyangfnst/sysprep_fix

virt-libguestfs: Fix bugs in virt_sysprep test