Fix unexpected path.join behavior in windows.