Fix: __is_valid_command() must deal with both upper and lower-case cmds