Bugfix for the update script (mostly).