oops that didn't work when using 'env'

luckily it's not needed anymore
do atomic cache update. fixes #17

apparently filesystemcache does not do atomic operations.
so first do to temp dir, and then do atomic moves of the files