Versioning Ignores source of datasource

Versioning always treats resource name as the datasource but for some resources the actual datasource is defined in resource_def['datasource']['source']