- Put everything into shell functions. - Start fixing shellcheck warnings. - Run a hostbuild before setting up an android toolchain (fixes #657). It was quite a hasty rewrite, so things could be broken. Let me know!