Git pre-commit hook to check the sanity of submodules before commit