Xd 784

Updated build script wrapper task to generate build_xd and modified gradlew to override environment variables if necessary