Added debug information to list_available_packages() that includes version and platform info
Fixed a bug with writing the package metadata file when installing a package as a .sublime-package file