setlocalversion: do not append -dirty when there are un-committed changes [simone201]