Fix get_current_version
When some packages share the same base name the get_current_version may return multiple version number which is an error.
When some packages share the same base name the get_current_version may return multiple version number which is an error.