make sure the package name is used to get the version

Change-Id: I8e10cbf6ac91d0728d70bc96b2bed723dded8511
Fixes-bug: #1295393
Merge "make sure the package name is used to get the version"