My trusted reviewers, please take a look

//cc @lemmy- @dmikis @tarmolov
This type of checking looks unsafe to me. Suppose, I have some npm module `config-whatever`. Also I have a `config` alias. This `config-whatever` module will be treated as an alias and resolved relatively to the alias path.
```
'config-whatever'.indexOf('config') // 0
```