Fix caching bug for magit-submodules