Handle Mesos dir, env vars, stdout/stderr.