Corrected update.sh to check command line argument count