Allow for a config object with a 'get' function

See discussion at https://github.com/isaacs/npm/pull/3379.