Fix submodule head bug with git flag due to new versions of git