software/theia: Fix resiliency promises
Export and import script store their result in an 'exitcodefile' and in case of failure write logs in an 'errorfile'. A promise then uses the exitcode file to determine if the latest run succeded or failed, and in case of failure reports the contents of the errorfile.
Both scripts were deleting the error file at the start of their run, so if they had failed previously, until the end of their new run the exitcode file indicated an error but the error file was missing, and thus the promises were failing to read it.
Now the error file is never deleted and is overwritten at the end of every run with the logs of the run, even in case of success. Thus the exitcode file and the error file are always consistent.