create config directory properly