Replaced hardcoded env names for real directory names

Replaced hardcoded env names for real directory names in ```$BUILD_DIR/app/cache/```.