if main is a directory, use index.js; fixes prelude-ls package