Fix saving of ipython profile