Consolidate envvars to `scripts/defaults`.

By moving all environment variables to a single location, and specifying
their defaults, each script can be run independently.

fix bug 1063098
Merge pull request #2334 from bramwelt/fix-bug-1063098-consolidate-envvars

fix bug 1063098 - Consolidate envvars to `scripts/defaults`.