[BUGFIX] Fixes check for active supported version

Extension "news" with dependency "6.2.2-6.2.99"
was set as outdated because of wrong check

Adds a unit test for this case

Change-Id: I7c3fc476395a611077877436859648741c5150f2
Relates: #54383
Reviewed-on: http://review.typo3.org/31779
Reviewed-by: Christian Zenker <typo3@xopn.de>
Tested-by: Christian Zenker <typo3@xopn.de>