Revert "moved the directoryModules outside the range of git"

This reverts commit 7e53e2a6375f0015e83436d23d70b3816fb123f0.