php5*-gmagick: set path to graphicsmagick in configure script

Closes issue #1007