variable expansion does not work in cache directories

Travis confirmed that variable expansion doesn't work in cache directories yet.
https://github.com/travis-ci/travis-ci/issues/2153

The caching won't start working until this is merged to master.