cmd: Don't read past end of thisVar in WCMD_expand_envvar (valgrind).