git-submodule: work with GIT_DIR/GIT_WORK_TREE