Restructure build.
Add getting environment value without default value.
Cleanup configuration a bit.