[libvirt] [PATCHv3] build: fix shell detection bug