refs #5007 try to find a non cgi and non fpm php binary