Fix ImageMagick detection on Mac

Hopefully this doesn’t break it for everyone else?