intellij-gen: fix git root problem

Some module dir may not be the git root itself.  Some modules may
share the same git root. e.g. "development/tools/apkcheck" module's
git root is "development/".  So we need to look at the parent
directories too when going through all the modules.

Change-Id: Id2ce859efc0d5f6286eb8545fd6a21244e7d40a6
2 files changed