Resolved issue where env variable wasn't being exported correctly.