Implements #24569 Adds `--stdinfile` flag for specifying the file to use in place of `stdinfile.nim` in error messages. Will enable easier integration of tooling with nim check (cherry picked from commit 0cba752c8a)
0cba752c8a