Added wrapper for getting the foundation cache directory.