setlocalversion: not all git version support the '-c' option

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
ptxd_dgen_rulesfiles: handle rulesdirs that are symbolic links

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>