Occasionally the while loop can exit with no data (Probably recieving an EOF) before receiveing CMDline data from the certial port. Continue looping until cmdline is populated

Signed-off-by: Edison Su <sudison@gmail.com>