Make loadConfig function name a variable.

The errors in the loadConfig function had the function name hardcoded in
each error.  This commit assigns the function name to a variable instead.