Fixing log directory permissions