Swapped order of redirection in runWithGraphs.sh