Update and initialize temporary directories for applications