Revert "Update scripts for building release"

This reverts commit 1238ee05047dbfe673dbd9e125ff2a42f98fa5d7.