Fix and robustify the 'system state dumper' script
At the moment this script is broken because it fails to detect the correct XDAQ zone. It can also be made a bit more robust against changes external to the script (i.e., in the TCDS setup). The script is also a bit out of date. It still tries to dump .stdout/.stderr files, which no longer exist since we moved to systemd.