Update update.sh for better server interaction