Restored ipython profile locate dir and fixed typo. (Fixes #3708).

Reverts commit 1406201 from #1762.