check first for file, then grep

Hopefully this removes grep error.  This should check first if there is
a updater-script for the main flash and if there is it will append the
kernel to it.