Export build env as config-specific
Export build env as config-specific

Configless exports sometimes lead to surprising expansions on import.
And build env does not make sense without a config anyway. This change
also fixes the case when properties refer to pkg_build_dir.

bazurbat/jagen