Check for existing attribute

Some packages doesn't have the attribute 'has_config_files'.