git-gui: Protect ourselves from funny GIT_DIR/working directory setups.