The uploads didn't take into consideration the $CHANNEL variable and badges were ending up in the dev channel. Also, the badge was too short for the version number so fixing the SVG as well.
using a local SVG file and doing replace. One less network hop.