detect version of OS from the source tree