Add logic to allow directory prefix in name and checksum fields, closes

This allows for the situation where distributions are in a version
specific directory and prevents the need to place the version directory
prefix in the main package url.