Updated the build-app.sh script to work in the gradle world.