Move check-dependencies.js to lib/