Update

Added code to detect Windows 7 and Windows 8