start on rewriting build_shell
remove redundant variable
Rewrite the env script generators.

This should actually make the unset scripts work.