Fix gen-graphs.sh script

The dependency graph is beautiful now, but should probably include
dependencies of dependencies, as well as runtime components...