fix setupConfigDirPath for darwin platform