Fixing path handling for Windows