Add some backwards compatibility to the winreg fix
update for 1.11