replace '/' with '\' in paths