Support exporting a "main" key
Stop supporting `path.exists`