Fixed cwd for submodules update
Merge pull request #6814 from lonerr/devel

Fixed cwd for submodules update