refactored major version extraction
Merge pull request #1 from Inventium/master

refactored major version extraction.