uart_protocol.c: Make command detection less greedy