write out new update.sh