Extract method for creating temp dirs when server starts