Fix putty registry file generation