Compilation issue post update to nim 2.0

I was using nim 1.6.10 version and updated to nim 2.0. I found a nim.cfg.pacnew file which I replaced.

On compiling any nim program I get this error

nim c "ValData_Validation_2023.nim" (in directory: /home/ajayc/Documents/Valuation/Asian/2023/WorkSpace) Error: cannot open '/usr/lib/nim/lib/system.nim' Compilation failed.

I have checked and there is no folder /usr/lib/nim/lib but system.nim file existe in /usr/lib/nim folder.

How do I tackle this issue?