Reduce the scope of token in command_found()

This is only used within the else branch.

Signed-off-by: Andrew Clayton <andrew@digital-domain.net>
Change command_found() to return a bool

It's a true/false thing it's determining.

Signed-off-by: Andrew Clayton <andrew@digital-domain.net>