libguestfs.virt_edit: Adjustment for virt_edit_cmd.

Fix virt_edit cases for following update:
https://github.com/autotest/virt-test/pull/1937

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>