use sha1 of command line and environment as subdir of cache
use the full filename for os.makedirs
do not use current directory as a prefix, fails for xbsv calls to bsc
do not include BUILDCACHE env variables in context