Use pkg_resource to get the version number.

Thanks @iElectric for the suggestion