Added optional 'git add submodule' option to doc building factories