Added auto discovery of .git links for submodules

- The same methos witch is done for ste directories
- Added extra directory retrieval for nested directories
Merge pull request #78 from ingwarsw/master

Added auto discovery of .git links for submodules