enable specification of BUILDCACHE_CACHEDIR

Change-Id: I70ea2ca03deaadf7ecb4ebb6f0403679445b28ee