Do something within temporary directory