Update lib/log.js & lib/path.js