Start refactor to detect version and make backwards compatable to windows 7 and 2008/R2