getMainFile returns ./index.js only if it is in package.json or file exists