Backport PR #4016: fix IPython.start_* functions.

See gh-4005