Catch more potential errors in `update.sh`