build: luci.mk: fix compatibility with older Git versions