Fix invalid require() error reporting.