paths: don't require existence

Create paths for FileCachePath and LogDir if they don't exist yet and give them proper permissions.

Fixes #539.