scripts/setlocalversion: fix a bug when LOCALVERSION is empty