read package.json with require
fixed maxOpenFile variable