change submodule command from bash script to git command: `foreach`