Fix for IPython 1.0.0 in which terminal dir has been moved