fix nginx start-up failure. always create temporary directories upon start