More universal version check