use init script when building with gradle wrapper

Otherwise, wrapper builds don't use the S3 mirror repository