Update terminal size on change.

In order to work property, this change needs ssh/terminal to be updated
to include https://codereview.appspot.com/105580043.

(Although it doesn't always work great with gnome-terminal and I'm not
sure that it ever can.)
Copy Pond's recognition of a Persistent folder on Tails.
Use filepath rather than string manipulation.