Fix #249. Update pm-download and friends with the new XML update format. Please test this so I can backport to 6.x