dev-build: check that 'php' is available before doing anything else

see #419