update.php: fix logic error near getopt() error handling