Fixed path handling on Windows