Added auto discovery of .git links for submodules

- The same methos witch is done for ste directories
- Added extra directory retrieval for nested directories