This commit fixes conditional exports in `require()` implementation if `--node-modules-dir` flag is used.