Fix bug where path isn't normalized in windows