Catch 'git describe' errors in build.gradle