Fix check for $CLEAR_BUILDCACHE_CACHE

Previously, it would just clear it when I had not set that environment variable. I think that this solves the problem; does it look all right?