Fixed loading packages with dashes in filenames (fixes #330).

This still allows for `name-os-arch` format, but will load a package
if `os` or `arch` don't match any of the known values.