modularized the build env script, added default env, added ability to build multiple of the same env