Fixed graphicsmagic when installing using --with-perl

The following error is fixed by this commit.
==> perl Makefile.PL PREFIX=/opt/homebrew/Cellar/graphicsmagick/1.3.19
Only one of PREFIX or INSTALL_BASE can be given.  Not both.
Checking if your kit is complete...
Looks good