The writefile action needed a rootPath that was guaranteed to exist. Record the rootPath that exists during startup and always use that rather than the first rootPath which may not exist.
The writefile action needed a rootPath that was guaranteed to exist. Record the rootPath that exists during startup and always use that rather than the first rootPath which may not exist.

teem2/server,teem2/server,teem2/server