Make submodule checks work under Python 3.

Closes gh-3385
Merge pull request #3387 from takluyver/py3-submodules

Make submodule checks work under Python 3

introduces a regression in the submodule check for people who may have fetched a tarball from GitHub,
which will now install an incomplete IPython.