Rewrite update_yum_repos for cleaner behaviour (avoid creating repodata in directory where it is not needed)