apprentice: fix read_cmd len read.
Apparently the example on erlang.org is wrong for specific lengths of packets...