Fix bug for main config dir