buildroot: improve git submodule handling for packages