Removed unnecessary console.log.
Fixed debug logging always being disabled.

Also corrected path argument for generating default settings file.