qemu_nbd: use cfdisk if available (revised)

See #5836 for details.