fix detect_yaml_attrs(), for the case when the meta.yaml does not exist