common: Avoid using require to read JSON file key

`require` is not working well with relative paths.

Fixes #95.

Don't merge, unit tests are required.