Avoid calling wxSetWorkingDirectory if its not really needed
Fixed issue #456