Update KernelUpdateScriptGenerator

Applied tips from this post http://ubuntuforums.org/showthread.php?t=2140181&p=12625431&viewfull=1#post12625431