make sure to recreate the tmp dirs on startup