use putenv to define defaults

This compensates for removing the default config in #3076