Last change on dome_script.cpp removed the use of tmpnam leaving name string with invalid value - this is the name of temp file where SCRIPT_STATUS script will save the state.
I believe that this same situation will occur with telescope_script.cpp.
Attached the log with invalid file name reported.
With original file back, there's a warning about tmpnam (but this warning was there before, without errors):