better support use of env vars for default values.

Fixes #197
fix test to not evaluate var in the here doc.
Fixes #197