Could it be that we need to call SetCurrentDirectoryW instead of _wchdir?