Simplified reading version from package.json

`readFileSync` -> `require`