[configure] get git revision from xbmc git root

It checks .git directory in order to set XBMC GIT_REV env var.
This fixes the case when XBMC is built by buildroot from *.mk file. In this case XBMC hasn't .git directory, so 'git log' returns commits from topmost repository which is buildroot.