fix path handling for Windows