updating version querying method

Also add unit tests for coverage of this metadata queries for each vcs. 

tarfile.__version__ is not available in python 3.3