[Mac] Fix title and env vars on external terminal