Error while running update.sh script