Added setAppFilesDirectory for iOS