Detect submodule changes and upgrade