Refactor the rebuild scripts

* Make the split of functionality more rational
* Switch the WIP cross-compile to aarch64

Test: rebuilds
Change-Id: Ifdd9a9884459abe3e701b68308c193d838e98b8d
2 files changed