fix path handling on Windows