Considering CAEStreamThread behavior is so subtle and non-deterministic, probably breaking so many other mods with their authors not even noticing, a fix on that should probably be good. Thus I ask you if you could please give context on the introduction of this feature in 4.3.
Chdir is prone to race conditions, using it in any form should be avoided, not encouraged. Would be nice if we could disable it somehow after the script does something specific, but I can't visualize what that is at the moment. In this case, script local chdir feature gets enabled.
Save a boolean indicating this script has used SET_CURRENT_DIRECTORY.Cc see the following solutions (in no particular preference order at the moment of writing):