Added posibility to set the temporary folder for caching.

It is now possible to overwrite the default caching folder.