Try to detect version