tweaked version testing.
changed way to get package version.