Fixed config options object overriding choices

`depth` and `log` config options are always being set to the defaults, and `dev` could be assigned a non-boolean value. 

Currently things like `npm ls --depth=0` are broken due to this.