Replace npm by read-installed

The `read-installed` package is much smaller and also faster.