automatically create config directories if not exist