Fix scripts/setlocalversion with tagged git commit