Git.pm: Set GIT_WORK_TREE if we set GIT_DIR