allow PYTHON_CMD or GIT_CMD to be set from the environment

allow PYTHON_CMD or GIT_CMD to be set from the environment, which is useful if the default python is python3