replaced var with let in system.nim

Nitpicking.
Merge pull request #1396 from PavelVozenilek/patch-5

replaced few var with let in system.nim