submodule: implement a config API for lookup of .gitmodules values