fixed bug based on wrong cwd for new git submodule foreach git checkout master