Fix vcs error when open files in git submodule