maint.mk: improve the public-submodule-commit rule