fix nodeRequire on nw