fix build script to find rerun.sh