Fix sig2dot for modern versions of GPG
The upstream version is broken and this fixes the major issues. I tried to keep the changes small and to match the existing style. The line diff might look like a lot, but the word diff is much smaller. Please let me know if you don't accept merge requests or have any other questions/concerns.