Override GIT_DIR and GIT_WORK_TREE in init