build: Simplify building of module dependency list

Change-Id: I598534c329178a182690a10009ac5c20718807df
Merge "build: Simplify building of module dependency list"