git-gui: set GIT_DIR and GIT_WORK_TREE after setup