[Fix #362] Revise the escape sequence that sets the terminal tab title

Previously `set-titles-with-path` function of `terminal` module
changed only a document URL in OSX Terminal.app.
Now it also sets a tab title.