Update update.sh

to make error logging to work