Surely a workdir-based env var needs a /state appended, if set and used ?
Should we be introducing a separate STATEDIR env var ?