lib/script: fix address parse bug

Credit: "Nummum"