quote:
(our whole script pretty much uses this variable.)

This is easy... don't use the environment variable! Why pollute the environment if it is to be used by KiX? Use a KiX variable instead.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.