Handle corrupt local repository folders