Fixed bugs in file path handling on Windows (hopefully...)