Safely create synchronization data file

In our setup, Rails has no occasion to touch `log/test.log` or similar files which also creates the log directory.

This PR will ensure the full hierarchy exists when touching the `log/localeapp.yml` file.