Set executable bit and ignore `.idea` in npm

When installed from npm I got wrong line endings in `./bin/pure-cjs` so that shebang did not work. But couldn't reproduce anymore so here are a couple of other minor packaging fixes.