Fix dir change when show hidden terminal panel with running program in it
Summary: Terminal panel doesn't change its working directory, while any procces is running in it. However, if you hide it and show again the program will get a string with a cd path command.
Subscribers: anthonyfieroni, kfm-devel
Differential Revision: https://phabricator.kde.org/D22422