Modified Gradle script to allow for seamless release building