Fix Null pointer on $spec
Merge pull request #32 from ismell/issue-30

Fixes #30 (undefined method `version' for nil:NilClass (NoMethodError))