Make the directory before writing to it.
Merge topic 'autorcc-target-dir' into next

90115a9b Make the directory before writing to it.
Add c_str.
Merge topic 'autorcc-target-dir' into next

6634f1b5 Add c_str.