fixed issues with latest/stable version detection
Merge pull request #28 from shahata/master

fixed issues with latest/stable version detection