Add ability to stub require.resolve