Modify for new libvirtd API and half implemented dir recovery

Signed-off-by: Hao Liu <hliu@redhat.com>