cw.lua.in: fix detection of command as string.