simplify build scripts.  Mostly stolen from conda-env