Fixes #7999 - do not match on 1.6.x releases

As suggested by Dominic, change the comparison to '>= 1.7'. This way 1.6.x minor releases will work again.