catch undefined 'provides' package version correctly