Feature/override tmp dir

I think there should be a way of overriding temp directory I'm runnung out of space when trying to upload files and using crypt library. This allows the use of the TMP variable to do so.