fix bad command detection

Signed-off-by: nixnodes <code@eth.si>