Fix to registry check to get install.bat working correctly on XP.

Addresses #415. @ruimalheiro please check on Vista/Win7.