Fix permissions for logfiles