Cleanup build process (#1140)

* Cleanup build process

avoiding bash subshells (which happen in for loops) because they
like to selectively inherit environment variables

* address restrictions of osx sip

see https://github.com/nteract/nteract/issues/1523#issuecomment-284027093
2 files changed