Build script overhaul, defconfig changes

Change-Id: If60719f56c4aafff2d7692880a78b94637aad7e3