Fix rebuild

Does it resolve a case when you have something like

```
/aaa/bbb/ccc.js
/ddd/bbb/ccc.js
```
and user tries to use `bbb/ccc.js` as a key?