issue #1683: Refactoring CCFileUtils for MAC port.