Fix CLI script and errors in JUpdater