Fix CWD terminal open script