Revert "scripts/setlocalversion: git: Make -dirty check more robust"