submodule: add get_submodule_config helper funtion