Add tempdir with context