switch_dist.sh: Make it more robust

Need not prepare for the first run.