perf(tar): detect dir by name
perf(tar): detect dir by name

If path is direcotry (ends with slash) or path is base dir (see glob-parent) we can not use `fs.stat()` to detect dir.

Before this change:

```
real   	1m36.596s
user   	1m38.054s
sys    	0m20.334s
```

After this change:

```
real   	1m26.146s
user   	1m28.172s
sys    	0m16.741s
```

blond/tartifacts