Refactored CCFileUtils for Marmalade port.