Fix check for $CLEAR_BUILDCACHE_CACHE

Previously, it would just clear it no matter what.