refactor(cli): use node to read package version

Node will natively parse a json file if it is passed into a require
statement. One less variable and function call. Also passes OS correct
path separators with the path.join call.