Add function in cling.nsi to detect the version of Windows

Abort installation for old and unsupported versions of Windows.