metasploit: Add a pkgver function.