Fix a huge mistake : Doesn't compare the two versions...

I don't know why nobody has noticed that yet, but it was only comparing if the current version was equal to the latest version, in case where current version would be 2.8 and the latest 2.7, it would say there is a new update which is totally wrong. 

It is now comparing if currentVersion >= latestVersion and also if it contains tags such as -SNAPSHOT.