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

So the script can be run from other directories,
e.g. where the actual data files live.
fixed merge conflict
Merge branch 'aseemk-script-paths'