Added function str_pkg to format package name and version as a short string