MDLSITE-2885 Specify the exact php executable to use.

In sites with multiple PHP versions installed, composer
may end picking the incorrect executable. Let's always
prioritize the one we use in CI ($phpcmd) via PATH.