matching terminate-environment script to job name.