gen-graphs.sh: use script-relative paths.

So the script can be run from other directories,
e.g. where the actual data files live.