fix in checking conf directory