More robust identification of libMagickWand