Update Mac Android offline installer & repository configurations

Change-Id: I6237aa61da6dad82530dbba7d79aa15323ee7f6e
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Fix minor bug in build script

Use the global variable after it has been declared not before.

Change-Id: I860a7822449885e29e612089f07a6aeaddda1e3b
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>