fixes a bug parsing version numbers with a hyphen at the end
Merge pull request #7 from marcomonteiro/version_parsing_bug_fix

fix a bug parsing version numbers with a hyphen at the end