Set permissions on the log directory