file(REAL_PATH): Warn on non-existing paths

The command is documented to work only for cases that the referenced
path exists.

Fixes: #26260
5 files changed