babeld: create the directory for the config file before writing to it