Implement permission inheritance in log module

Quick-and-dirty matching of permissions when new log directories are
created. Currently gets tripped up by the umask with some perms.

Fixes #383 … more or less