[x0d] perform some environment sanity checks efore entering running state to avoid having those errors at runtime
[x0d] fixes reexec (SIGHUP) handling