Fix require() not handling recursion correctly.