ensure the used directories exist