module: fix regression in require ../

Fixes regression in require system that prevented loading relative
packages via main property in package.json where the file is not
index.{ext}. The regression was introduced via cfc1272637dbbd24e79d78c9aafeab67e1ca695d

An example of a package affected by this is `node-gyp`.