240 - Add ensure_dependencies.py for submodules

The commit for the mercurial repo is the same id used on the original version, you can see it in the .hgsubstate file, which is removed in this commit, the git id is the equivalent on github