Fixes issue #5 and uses winreg to get regvalue