Create leadings dirs for filenames passed to write_to_file