fixed up recursive edge cases - core modules, modules that call require.resolve