Unknown function/script-file should be reported in the caller's context

This results in a more useful error message containing the filename
and line number at which the attempted call was made.