Fix the bug when root has no mirror, generate wrong named configure