move cache folder from ROOT/_cache to tempdir determined by tempfile module

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>