Fix bug where commands with no arguments were not recognized

Signed-off-by: Ian Macalinao <ianmacalinao@gmail.com>