Update KernelUpdateScriptGenerator

Add download only option and fix missed exit code