Refactored CCFileUtils for blackberry port.