Switching to CPM_CACHE_DIR environment variable for tests.