Use dependencies' Berksfiles and allow using versions from metadata to compute tags

@tomdz