fix IE version detection for IE6 and IE7