Fix Git not finishing fast enough in build.gradle