Fix minimagick/imagemagick version checker.