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