Given a list of modules, recursively retrieve their dependency graph and generate a flat list of each module's dependencies