Have you tried just doing the standard Tools > Burn Bootloader of the Arduino IDE instead of using that Nick Gammon sketch?