CA-101777: Refine the logic of getting the VM uuids from snapshots

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
CA-101777: add some comments on the compatability checking logic

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>