Run mach with Python 2.7 if it is present

This is the same snippet as used by mozilla-central. Though there is still more work needed to make the whole build complete on systems where Python 3 is the default.