Fix check for core version