Fix for 'cmdline' lib: wrong way of matching b/w cmd DB and cmd buffer