Added which to find pre isntalled optipng. This works if it has been built and installed via the --prefix=/home/gcallaghan configuration setting