Use the exact versions dependencies

And remove unused "which" package

Closes gh-1458