chdir fix for win32, to test.