Use PATH_SUFFIXES for imagemagick

This is a better solution than the hack I added before