cw.c: correct detection of cw being run directly

We can't look at argv[0], as that will always be "cw" in some form.
Hence, look at argv[1], and effectively disallow programs called
--help and --version.

Use base_name everywhere, and remove strpname.