Revert to checking for empty repodir