issue #1687: Refactoring CCFileUtils, abstracting the same implementations for all platforms.