script for working in a temporary encrypted directory