add module information in automatically generated files, use that information to improve find_dependencies.sh