issue #1683: Moved CCFileUtils::setResourceDirectory. And fixed a compatible issue for android.