simply require package.json to get current version

This avoids unnecessary dependency,
and is a common pattern used to get
current version.