Made sure the tmp directory always exist.