Fixed bug for getting version from package.json