fix directory generation with wxWidgets