kbuild: fix 'make rpm' when CONFIG_LOCALVERSION_AUTO=y and using SCM tree