Move getAppDataDirectory() from utils to platform