Node.path.resolve API fix.