Build script overhaul finished, pretty much handles all the things I need it to do

Change-Id: Ie0d135f8949e7ac0c23e8a55714c369dc04df8b6