fixed using mac cache dir on all platforms