improved detect_distro performance for OS X <= 10.7