Propagating environment to batch jobs and batch jobs of batch jobs