Fix build script so it builds from a fresh checkout.