Try to delete the directories the repos are in, but only if the head is detached