small fix to avoid an OSError when trying to force a repodata regeneration