[Fix #362, Fix #384] Set Mac OS X 10.6 terminal window title
[INCOMPLETE] WIP