Bug 975183 -  nested submodule repository cannot be found

* lib/module001/module002 was not supported
* test added
Merge pull request #2894 from jwhonce/bug/975183

Merged by openshift-bot