Fix extractSubgraph.sh