make run.sh idempotent