Fix runtime environment for PostJob.