Use node['php']['bin'] when locating php binary with which.