Fix a potential crash in the debugger.
Correctly initialise the datadir variable when using wxWidgets 3.0 on Mac.