Fixes issue with delayed_job environment setting.

Change-Id: Iff0285426c21f6c7de7e7b527cebdae3ffaeba47