Run git submodule sync between git submodule init and update.

This is a fix for #548. Currently when git submodule urls change, both
server and agents are unable to get materials and must be manually
fixed.
Merge pull request #631 from mmb/git-submodule-url-change

Run git submodule sync between git submodule init and update.