Revert "updated build script"

This reverts commit ab65d2c1614cc0dcd227806efce7df1c0139f67b.