fix Windows path name comparison
fixed test for Windows
fixed Windows file handling