directory tweaks, supporting multiple wx versions