Hi Dan:
Running the set command, and doing a 'set' in the build window, confirms your suspicion that the variable is set in the editor but is not being inherited by the build. If I switch workspaces the set command always shows the expected variable value. However the build window always shows the value of the variable that was inherited from the CMD window from which I launched SE.
Regards,
Bob Roaten