correct permissions for log dir