Only apply environment specific config if variable is defined