Fix ramdisk timeout in uboot

This happen whan '#' character is a part of U-Boot prompt.