Use 5.18.2 as default Perl version if no perl package in channels.

Also fix rare issue where MetaCPAN `archive` field for package
includes a directory. Now we call `basename`.