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

babeld.init couldn't create the config file because of a nonexistent directory. This commit creates the directory before writing to the config file.