Specify the package version only once

The package version was hardcoded three times and the User Agent string was hardcoded to an older version.