Revert "Update build scripts for TMO"

This reverts commit 493571e819b1312183bd2f1e1845486ac36fa0cc.