Fix relative path handling on Windows