Fixes to run.sh