Fix required env. variable processing.