changing the upgrade kernel task to upgrade the kernel to 3.13.0-34-generic version. Rearranged the code to handle the reboot requence properly