tools: kwboot: Use a function to check whether received byte is a Xmodem reply