maintainer-makefile: work with older git for submodule check