Fix gradle build script