[PATCH 4.14-stable] scripts/setlocalversion: make git describe output more reliable