update.sh: fix failure under dash

This fixes bug 6397 (https://bugs.freenetproject.org/view.php?id=6397).