Fix error in extracting archive versions

Version number was not being properly extracted from the archive.

Archive URL was not updated with suffix based on type.