Fix some uses of path.separator property