Refactor CCFileUtils for Linux port.