updated build script such that we could build distributions