Updated detection for windows 8.1