Fixed cmake version check (was broken for cmake 3)