handle both cases where makeconf content is either string or list