rcm: Add hook to ensure submodules are correct