does this do the right thing if you have changed directory with `%cd` magic in the notebook? I will check when I have a chance.