use env to find php

Use env to find php.
On a mac with macports php might be installed somewhere else, e.g. /opt/local/bin/php, although /usr/bin/php exists.