wrlib: changed the function used to detecting MagickWand