More robust environment support

Some people have both php and hhvm installed on their system, or may have multiple versions of php. Let's make sure we call the correct one.