Simplify lib/deploy.js