Fix TEST_PHP_EXECUTABLE guessing.

The old code always assumed /usr/bin/php. Changed to use `which php`.