Support for direct terminal launch on OS X