Ported the version check from devel