Fixed config directory creation