Patch inspired by one from Daniel Silverstone in Debian bug #229232:
[u/mdw/putty] / contrib /
drwxr-xr-x   ..
-rwxr-xr-x 5318 kh2reg.py