build_wrapper: Make iOS and Android build handlers consistent

Just moving around some code to make them look consistent.

Change-Id: I426aa3b442e3dfb159d9b0a01de4743410dafae4
Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>