Export CACHE_DIR

To enable custom scripts to make use of the CACHE_DIR this needs to be
exported to make it available for composer scripts.