Fix for "directory path was empty" error

If there is a window already open for Transmit, this is refreshed
(`transmit.refresh(nil)`) to prevent a "directory path was empty" error
that seemed to be caused by the connection falling asleep.