Fix to generate-run-scripts.sh