fixed a logical error in ./update.sh