[npm] update dependencies and remove which
[refactor] replace which with shells