Make HOSTPYTHON/HOSTPGEN paths absolute.
Change sys.platform to linux-android for Android.