cw.c: simplify parsing of environment variable assignments