Rename method getCacheDir to getTempDir and deliver path to temporary directory, provided by operating system.