Handle dashes in mod version when building cache

Updated api/cache/update to support version identifiers that include
dashes. Anchored regex using portion of filename matching the current
directory.