Improve error message for referencing non-existent files.