add scripts to generate .gitmodules