Fix for undefined variable

env variable not available as part of the initialize.