fixing nil error when cookbook is not stored local
fixing bug in version (minor version was equal to major version)