Inherit log settings from npm.

If the optional dependency `npmlog` happens to be installed, log settings such as color, heading and log-level will be not be inherited from npm's configuration. This PR explicitly tries to inherit log config no matter whether `npmlog` is installed or not.