Change working directory when joining workspace.

Also clear highlights when disconnecting.