Fix wget error message and add (and use) chomp library function.