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.